package com.carey.swift.dev.mapping;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD,ElementType.TYPE})
public @interface WebMapping{

    /**
     * url 映射地址
     * @return
     */
    String url() default "";

    /**
     * 请求方法类型
     * @return
     */
    HttpMethod method() default HttpMethod.ALL;
}
